package cn.silver.module.quartz.bean;

import cn.silver.framework.mybatis.bean.BusBean;
import cn.silver.module.quartz.domain.SysJob;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@AutoMapper(target = SysJob.class)
@EqualsAndHashCode(callSuper = true)
@Schema(name = "JobBean", title = "任务查询结果")
public class JobBean extends BusBean implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 任务组名
     */
    @Schema(title = "任务组名")
    private String group;

    /**
     * 调用目标字符串
     */
    @Schema(title = "调用目标字符串")
    private String invoke;

    /**
     * cron执行表达式
     */
    @Schema(title = "执行表达式")
    private String expression;

    /**
     * cron计划策略
     */
    @Schema(title = "计划策略")
    private String strategy;

    /**
     * 是否并发执行
     */
    @Schema(title = "是否并发执行")
    private Boolean concurrent;

}
